#pragma once
#include "GlobalVariables.h"
#include<d3dx9.h>

class CCamera
{
private:
	int _WorldWidth, _WorldHeight;
	int _ViewPortX, _ViewPortY;
	int _oldX, _oldY;
	int _PositionX, _PositionY;
	bool _IsAllowBack;
	bool _AutoMoveX, _AutoMoveY;
public:
	static CCamera *Instance;
	static CCamera *getInstance();
	CCamera(void);
	~CCamera(void);
	void SetWorldSize(int WorldWidth, int WorldHeight);
	void Update(int X, int Y);
	D3DXVECTOR2 GetViewPort();
	D3DXVECTOR2 GetWorldSize();
};